<template>
    <div class="_header">
        <router-link :to="{name: 'Login'}" class="login-link" activeClass="active">登录</router-link>
        <router-link :to="{name: 'Register'}" class="register-link" activeClass="active">注册</router-link>
    </div>
</template>

<script>
	export default {
		name: 'InAndOutHeader'
	};
</script>

<style scoped="">
    .active {
        position: relative;
        color: #ff6a00;
    }
    ._header {
        position: relative;
        line-height: 30px;
        margin-bottom: 5px;
    }
    ._header:after, .active:after {
        content: '';
        border-bottom: 2px solid #ccc;
        left: 0;
        position: absolute;
        right: 0;
        bottom: 0;
    }
    a {
        display: inline-block;
        font-size: 13px;
        width: 70px;
        text-align: center;
        color: #737373;
    }
    .active:after {
        z-index: 10;
        border-bottom-color: #ff6a00;
    }
</style>
